<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<script>

    // var a = ["12","34","56"];
    // var b = ["78","98","85"];

    // var c = a.concat(b);        //数组合并
    // document.write(c);
    // doucment.write("<br />");
    var d = ["1","3","2","5","4"];
    // document.write(d.sort());       //数组排序
    // doucment.write("<br />");
    // doucment.write(d.sort(function (a,b) {       //升序  不可用
    //     return a-b;
    // }))
    // doucment.write("<br>");
    // doucment.write(d.sort(function (a,b) {       //倒叙  不可用
    //     return b-a;
    // }))
    d.push("9");        //末尾追加
    d.reverse();        //翻转
    document.write(d);
</script>
</html>